﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="JobSet.aspx.cs" Inherits="Department_JobSet" %>

<%@ Register Src="../Control/DepartmentDList.ascx" TagName="DepartmentDList" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">

    <script type="text/javascript" src="../Js/pop/ymPrompt.js"></script>

    <link rel="stylesheet" id='skin' type="text/css" href="../Js/pop/skin/qq/ymPrompt.css" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
        datamember="Job">
    </infolight:webdatasource>
    <table cellpadding="0" cellspacing="5" class="TbSearch">
        <tr>
            <td style="width: 50px;">
                部门：
            </td>
            <td>
                <uc1:DepartmentDList ID="Depart" runat="server" />
            </td>
            <td style="width: 60px;">
                职位状态：
            </td>
            <td style="text-align: left">
                <asp:DropDownList ID="ddlStatus" runat="server">
                    <asp:ListItem Value="-1">未选择</asp:ListItem>
                    <asp:ListItem Value="0">启用</asp:ListItem>
                    <asp:ListItem Value="1">作废</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="width: 50px;">
                名称：
            </td>
            <td>
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
            </td>
            <td style="text-align: right; margin-right: 10px;">
            <span class="roundbtn">
                            <asp:LinkButton ID="SearchButton" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;查&nbsp;&nbsp;询&nbsp;&nbsp;&nbsp;&nbsp;" OnClick="Search_Click"></asp:LinkButton>
                        </span>
             &nbsp;&nbsp;&nbsp;&nbsp;
                        <span class="roundbtn">
                            <asp:LinkButton ID="Add" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;添&nbsp;&nbsp;加&nbsp;&nbsp;&nbsp;&nbsp;" OnClientClick="ymPrompt.win({title:'职位明细',message:'JobDetail.aspx?action=add',closeBtn:true,iframe:true,allowRightMenu:false,allowSelect:false});ymPrompt.max();return false"></asp:LinkButton>
                        </span>
            </td>
        </tr>
    </table>
    <div class="tabsI" runat="server" id="Record">
    </div>
    <infolight:webgridview id="wgvMaster" runat="server" cellpadding="5" datasourceid="Master"
        forecolor="#333333" width="100%" aborticonurl="../Image/UIPics/Abort.gif" addiconurl="../Image/UIPics/Add.gif"
        applyiconurl="../Image/UIPics/Apply.gif" canceliconurl="../Image/UIPics/Cancel.gif"
        mouseoveraborticonurl="../Image/UIPics/Abort2.gif" mouseoveraddiconurl="../Image/UIPics/Add2.gif"
        mouseoverapplyiconurl="../Image/UIPics/Apply2.gif" mouseovercanceliconurl="../Image/UIPics/Cancel2.gif"
        mouseoverokiconurl="../Image/UIPics/OK2.gif" mouseoverqueryiconurl="../Image/UIPics/Query2.gif"
        okiconurl="../Image/UIPics/OK.gif" queryiconurl="../Image/UIPics/Query.gif" headerstylewrap="False"
        backcolor="White" bordercolor="White" borderstyle="Groove" borderwidth="2px"
        onrowdatabound="wgvMaster_RowDataBound">
        <pagersettings mode="NumericFirstLast" />
        <footerstyle backcolor="#507CD1" forecolor="White" font-bold="True"></footerstyle>
        <navcontrols>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                    MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" 
                    ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                    MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" 
                    ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                    MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" 
                    ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>
        <columns>
        <asp:TemplateField ShowHeader="False" HeaderText="删除职位">
                    <edititemtemplate>
<asp:ImageButton runat="server" Text="Update" CommandName="Update" ImageUrl="~/Image/UIPics/OK.gif" CausesValidation="True" id="ImageButton6"></asp:ImageButton>&nbsp;<asp:ImageButton runat="server" Text="Cancel" CommandName="Cancel" ImageUrl="~/Image/UIPics/Cancel.gif" CausesValidation="False" id="ImageButton7"></asp:ImageButton>
</edititemtemplate>
                    <headerstyle wrap="False" />
                    <itemtemplate>
                        &nbsp;<asp:ImageButton runat="server" Text="Delete" CommandName="Delete" ImageUrl="~/Image/UIPics/Delete.gif" CausesValidation="False" id="ImageButton9" OnClientClick="return confirm('确认删除？')"></asp:ImageButton>
</itemtemplate>
                </asp:TemplateField>
            <asp:TemplateField HeaderText="查看详细">                    
                     <HeaderStyle Wrap="False" />
                    <itemstyle horizontalalign="Center" />
                    <itemtemplate>
                    <asp:ImageButton ID="imb" runat="server" ImageUrl="../Image/UIPics/Select.gif" 
                            CommandName="show" ></asp:ImageButton>
                   </itemtemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="JobId" HeaderText="职位编号" SortExpression="JobId" />
                <asp:BoundField DataField="JobName" HeaderText="职位名称" 
                    SortExpression="JobName" />
                <asp:BoundField DataField="DepartmentName" HeaderText="所属部门" 
                    SortExpression="ParDepartmentId" />
                <asp:TemplateField HeaderText="职位状态" SortExpression="Del">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Del") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Del" runat="server" Text='<%# Bind("Del") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
</columns>
        <rowstyle backcolor="#EFF3FB" horizontalalign="Center"></rowstyle>
        <editrowstyle backcolor="#2461BF"></editrowstyle>
        <selectedrowstyle backcolor="#D1DDF1" forecolor="#333333" font-bold="True"></selectedrowstyle>
        <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center"></pagerstyle>
        <headerstyle backcolor="DeepSkyBlue" forecolor="White" font-bold="True"></headerstyle>
        <alternatingrowstyle backcolor="White" bordercolor="White"></alternatingrowstyle>
    </infolight:webgridview>
</asp:Content>
